package com.UnionPayCenter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.OperationInfos;
import com.UnionPayCenter.entity.OperationScenes;

@Repository
@Mapper
public interface OperationScenesMapper extends MyMapper<OperationScenes> {

    List<OperationScenes> selectList(@Param("shopId") Integer shopId, @Param("type") Integer type);

    OperationScenes selectByName(@Param("opsName") String opsName, @Param("shopId") Integer shopId);

    int deleteOldInfo(@Param("opsId") Integer opsId);

    int insertInfoList(@Param("infoList") List<OperationInfos> infoList);

    List<OperationInfos> selectOperInfoList(@Param("opsId") Integer opsId);
    
    List<OperationInfos> selectOperInfoByShop(@Param("shopId") Integer shopId, @Param("type") Integer type, @Param("amount") Integer amount);

    OperationScenes selectRegType(@Param("shopId") Integer shopId);

}
